Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix checkov scan findings #20

Merged
merged 5 commits into from
Sep 13, 2024
Merged

Fix checkov scan findings #20

merged 5 commits into from
Sep 13, 2024

Conversation

kunduso
Copy link
Owner

@kunduso kunduso commented Sep 13, 2024

The changes in this PR closes #19

Copy link

💰 Infracost report

Monthly estimate generated

This comment will be updated when code changes.

Copy link

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Plan 📖success

Terraform Validation 🤖success

Show Plan

terraform
data.archive_file.python_file: Reading...
data.archive_file.python_file: Read complete after 0s [id=efca5ba5d15c470502277886d6f89aea9b62262c]
aws_cloudwatch_event_rule.lambda_trigger: Refreshing state... [id=app-7-lambda-trigger-rule]
data.aws_caller_identity.current: Reading...
aws_iam_role.lambda_role: Refreshing state... [id=app-7-lambda-role]
aws_kms_key.encryption: Refreshing state... [id=ea4ca7bd-18dc-4230-9d79-78b74ba63957]
data.aws_caller_identity.current: Read complete after 0s [id=743794601996]
aws_kms_alias.encryption: Refreshing state... [id=alias/app-7]
aws_cloudwatch_log_group.lambda_log: Refreshing state... [id=/aws/lambda/app-7]
aws_ssm_parameter.parameter: Refreshing state... [id=/app-7]
aws_sqs_queue.dlq: Refreshing state... [id=https://sqs.us-east-2.amazonaws.com/743794601996/app-7-lambda-dlq]
data.aws_iam_policy_document.encryption_policy: Reading...
data.aws_iam_policy_document.encryption_policy: Read complete after 0s [id=3054319461]
aws_kms_key_policy.encryption: Refreshing state... [id=ea4ca7bd-18dc-4230-9d79-78b74ba63957]
aws_cloudwatch_log_stream.log_stream: Refreshing state... [id=app-7-lambda-log-stream]
aws_iam_policy.lambda_policy: Refreshing state... [id=arn:aws:iam::743794601996:policy/app-7-lambda-policy]
aws_lambda_function.lambda_run: Refreshing state... [id=app-7]
aws_iam_role_policy_attachment.lambda_policy_attachement: Refreshing state... [id=app-7-lambda-role-20240913015918205200000001]
aws_lambda_permission.allow_cloudwatch: Refreshing state... [id=AllowExecutionFromCloudWatch]
aws_cloudwatch_event_target.lambda_target: Refreshing state... [id=app-7-lambda-trigger-rule-lambda_target]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # aws_lambda_function.lambda_run will be updated in-place
  ~ resource "aws_lambda_function" "lambda_run" {
        id                             = "app-7"
      ~ last_modified                  = "2024-09-13T01:59:26.473+0000" -> (known after apply)
      ~ source_code_hash               = "NTFp25PFL/eo3L2aze0dY/cM+BVOnmrJ1/SY7tbRREk=" -> "r/IEcoyUiZqdbjpfqNbrR03Z+f3qKrwjwkDn/9yI5Wo="
        tags                           = {}
        # (27 unchanged attributes hidden)

        # (5 unchanged blocks hidden)
    }

  # aws_sqs_queue.dlq will be updated in-place
  ~ resource "aws_sqs_queue" "dlq" {
        id                                = "https://sqs.us-east-2.amazonaws.com/743794601996/app-7-lambda-dlq"
      + kms_master_key_id                 = "arn:aws:kms:us-east-2:743794601996:key/ea4ca7bd-18dc-4230-9d79-78b74ba63957"
        name                              = "app-7-lambda-dlq"
        tags                              = {}
        # (18 unchanged attributes hidden)
    }

Plan: 0 to add, 2 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Saved the plan to: TFplan.JSON

To perform exactly these actions, run the following command to apply:
    terraform apply "TFplan.JSON"

Pushed by: @kunduso, Action: pull_request

@kunduso kunduso merged commit 40cc3bd into main Sep 13, 2024
6 checks passed
@kunduso kunduso deleted the fix-checkov-scan-findings branch September 13, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Checkov Scan findings.
1 participant